import request from '@/utils/request'

// 查询用户基本信息列表
export function listAppUserExt(query) {
  return request({
    url: '/system/appUserExt/list',
    method: 'get',
    params: query
  })
}

// 查询用户基本信息详细
export function getAppUserExt(id) {
  return request({
    url: '/system/appUserExt/' + id,
    method: 'get'
  })
}

// 新增用户基本信息
export function addAppUserExt(data) {
  return request({
    url: '/system/appUserExt',
    method: 'post',
    data: data
  })
}

// 修改用户基本信息
export function updateAppUserExt(data) {
  return request({
    url: '/system/appUserExt',
    method: 'put',
    data: data
  })
}

// 删除用户基本信息
export function delAppUserExt(id) {
  return request({
    url: '/system/appUserExt/' + id,
    method: 'delete'
  })
}

// 删除用户头像
export function deleteHeadUrl(id) {
  return request({
    url: '/system/appUserExt/deleteHeadUrl/' + id,
    method: 'delete'
  })
}
